﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebFormJavaScript.aspx.cs" Inherits="Projet1VideoAulaNery.WebFormJavaScript" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script language="javascript" type="text/javascript">
        function mensagem() {
            window.alert("Função Java Script");
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Panel ID="Panel1" runat="server" Height="61px" Width="704px">
            <asp:Button ID="Button1" runat="server" Text="JavaScript na Tag" 
                onclientclick="alert('Mensagem de Alerta')" />
            <asp:Button ID="Button2" runat="server" Text="Chamar Função JavaScript" 
                onclientclick="mensagem()" />
            <asp:Button ID="Button3" runat="server" Text="JavaScript Attributes" />
            <asp:Button ID="Button5" runat="server" onclick="Button5_Click" 
                Text="Java Script Response Write" Width="185px" />
            <asp:Button ID="Button4" runat="server" Text="JavaScript Confirm" />
            <br />
            <ext:GridPanel ID="GridPanel1" runat="server" Height="300" Title="Title">
            </ext:GridPanel>
            <br />
            <asp:Image ID="Image1" runat="server" ImageUrl="~/imagens/telaSplash.jpg" />
            <asp:Button ID="Button6" runat="server" onclick="Button6_Click" 
                Text="Escrevendo com REsponse Write" />
            <br />
            <br />
            Mostrando mais Request<asp:TextBox ID="TextBox1" runat="server" 
                ontextchanged="TextBox1_TextChanged"></asp:TextBox>
            <asp:Button ID="Button7" runat="server" onclick="Button7_Click" 
                Text="Ler TextBox" Width="149px" />
            <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        </asp:Panel>
    
    </div>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    </form>
</body>
</html>
